package vip.lsjscl.flowboot.workflow.model;

import java.io.Serial;
import java.io.Serializable;
import java.util.List;

import lombok.Data;

/**
 * 节点(活动)数据
 *
 * @author zhangxingju
 * @date 2025/02/13
 */
@Data
public class NodeData implements Serializable {
    @Serial
    private static final long serialVersionUID = 1L;

    private String name;
    private String code;
    private String executionLogic;
    private String pageUrl;
    private String beforeClass;
    private String afterClass;
    private List<String> approvers;
    private List<String> departments;
    private List<Operation> operations;
    // 如果有必要记录 activity 类型
    private String type;

    @Data
    public static class Operation implements Serializable {
        @Serial
        private static final long serialVersionUID = 1L;

        private String type;
        private String name;
    }
} 